from django.db import models

# Create your models here.

class Hill(models.Model):
    grade = models.PositiveIntegerField(blank=False, null=True)
    name = models.CharField(max_length=100, null=False, blank=False)
    numberLifts = models.PositiveIntegerField(blank=False, null=True)
    numberBlackRuns = models.PositiveIntegerField(blank=False, null=True)
    numberBlueRuns = models.PositiveIntegerField(blank=False, null=True)
    numberGreenRuns = models.PositiveIntegerField(blank=False, null=True)
    numberRedRuns = models.PositiveIntegerField(blank=False, null=True)
    def __unicode__(self):
        return self.name

            
class OfficialReport(models.Model):
    hillName = models.CharField(max_length=100, null=False, blank=False)
    snowAtBottom = models.PositiveIntegerField(blank=False, null=False)
    snowAtTop = models.PositiveIntegerField(blank=False, null=False)
    numberOpenLifts = models.PositiveIntegerField(blank=False, null=False)
    numberOpenBlackRuns = models.PositiveIntegerField(blank=False, null=False)
    numberOpenBlueRuns = models.PositiveIntegerField(blank=False, null=False)
    numberOpenGreenRuns = models.PositiveIntegerField(blank=False, null=False)
    numberOpenRedRuns = models.PositiveIntegerField(blank=False, null=False)
   
    
class Feedback(models.Model):
    hillName = models.CharField(max_length=100, null=False, blank=False)
    overallSnowCondition = models.PositiveIntegerField(blank=False, null=False)
    evaluation = models.CharField(max_length=100, null=False, blank=False)
    comment = models.CharField(max_length=100, null=False, blank=False)
    date = models.CharField(max_length=100, null=False, blank=False)
    
class User(models.Model):
    login = models.CharField(max_length=100, null=False, blank=False)
    password = models.CharField(max_length=100, null=False, blank=False)
    
